package com.sansan.qiangji.service.impl.base;

import com.sansan.qiangji.entity.base.WarehouseArea;
import com.sansan.qiangji.entity.base.example.WarehouseAreaExample;
import com.sansan.qiangji.mapper.base.WarehouseAreaMapper;
import com.sansan.qiangji.service.inter.base.WarehouseAreaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class WarehouseAreaServiceImpl implements WarehouseAreaService {

    @Autowired
    private WarehouseAreaMapper warehouseAreaMapper;

    @Override
    public long countByExample(WarehouseAreaExample example) {
        return warehouseAreaMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(WarehouseAreaExample example) {
        return warehouseAreaMapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Integer warehouseAreaId) {
        return warehouseAreaMapper.deleteByPrimaryKey(warehouseAreaId);
    }

    @Override
    public int insert(WarehouseArea record) {
        return warehouseAreaMapper.insert(record);
    }

    @Override
    public int insertSelective(WarehouseArea record) {
        return warehouseAreaMapper.insertSelective(record);
    }

    @Override
    public List<WarehouseArea> selectByExample(WarehouseAreaExample example) {
        return warehouseAreaMapper.selectByExample(example);
    }

    @Override
    public WarehouseArea selectByPrimaryKey(Integer warehouseAreaId) {
        return warehouseAreaMapper.selectByPrimaryKey(warehouseAreaId);
    }

    @Override
    public int updateByExampleSelective(WarehouseArea record, WarehouseAreaExample example) {
        return warehouseAreaMapper.updateByExampleSelective(record,example);
    }

    @Override
    public int updateByExample(WarehouseArea record, WarehouseAreaExample example) {
        return warehouseAreaMapper.updateByExample(record,example);
    }

    @Override
    public int updateByPrimaryKeySelective(WarehouseArea record) {
        return warehouseAreaMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(WarehouseArea record) {
        return warehouseAreaMapper.updateByPrimaryKey(record);
    }
}
